<!--
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-02-18 14:21:03
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-12 17:00:54
-->
<template>
  <div>
    <el-drawer
      title="详细信息"
      :visible.sync="dialog.dialogShowDrawer"
      :direction="direction"
      :with-header="false"
      size="60%"
      :modal="false"
      @close="drawerClose"
    >
      <div class="head">
        <div class="header">
          <div class="img">
            <img src="@/assets/images/icon-batch.png" alt="" />
            <h3>{{ drawerData.companyName }}</h3>
          </div>
          <div class="btn">
            <el-button type="primary" plain @click="changeCharge">
              更换负责人
            </el-button>
          </div>
        </div>
        <div class="footer">
          <div class="information">
            <span>姓名</span>
            <h4>{{ drawerData.name }}</h4>
          </div>
          <div class="information">
            <span>联系方式</span>
            <h4>{{ drawerData.phone }}</h4>
          </div>
          <div class="information">
            <span>证书数量</span>
            <h4>{{ drawerData.certNum }}</h4>
          </div>
          <div class="information">
            <span>资质数量</span>
            <h4>{{ drawerData.qualNum }}</h4>
          </div>
        </div>
      </div>
      <div class="strip"></div>
      <div class="specific">
        <el-tabs v-model="activeName" type="border-card" @tab-click="tabChange">
          <el-tab-pane label="活动" name="first">
            <div class="activetyIpt" v-if="HdShow" @click="HdShow = false">
              <span>请输入内容</span>
            </div>
            <div class="activeArea" v-else>
              <i class="el-icon-close Gb" @click="HdShow = true"></i>
              <el-input
                v-model="txtInput"
                type="textarea"
                rows="4"
                maxlength="200"
                show-word-limit
                placeholder="请输入内容"
              ></el-input>
              <div class="activeArea-bottom">
                <div></div>
                <el-button type="primary" size="default" @click="submit">
                  确定
                </el-button>
              </div>
            </div>
            <template v-for="(item, index) in ActiveList">
              <div :key="index" class="detail">
                <div class="time">
                  {{ item.createTime }}
                </div>
                <div class="content">
                  <div class="content-left">
                    <div class="avatr">
                      <img :src="item.avatar" alt="" />
                    </div>
                    <div class="userName">
                      {{ item.name }}
                    </div>
                  </div>
                  <div class="content-right">
                    <el-dropdown>
                      <el-button class="el-icon-more"></el-button>
                      <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item @click.native="importClue(item)">
                          编辑
                        </el-dropdown-item>
                        <el-dropdown-item @click.native="acDel(item)">
                          删除
                        </el-dropdown-item>
                      </el-dropdown-menu>
                    </el-dropdown>
                  </div>
                </div>
                <div class="substance">{{ item.content }}</div>
              </div>
            </template>
          </el-tab-pane>
          <el-tab-pane label="证书" name="second">
            <div class="left">
              <span>场景：</span>
              <el-select
                v-model="value"
                ref="sel"
                clearable
                @visible-change="
                  (v) => visibleChange(v, 'sel', selClick, admClick)
                "
                class="sel-sence"
                @change="querySceneList"
              >
                <el-option
                  v-for="item in sceneOptions"
                  :key="item.sceneId"
                  :label="item.name"
                  :value="item.sceneId"
                >
                </el-option>
              </el-select>
              <el-button
                type="primary"
                icon="iconfont icon-shaixuan"
                size="default"
                @click="screen"
              >
                高级筛选
              </el-button>
            </div>
            <div v-if="scenArr !== []" class="scenF">
              <div
                v-for="(item, index) in scenArr"
                :key="index"
                class="scenF-content"
              >
                <div class="scenF-detail" @click="scenSearch(item.sceneId)">
                  {{ item.sceneList }}
                  <i
                    class="el-icon-circle-close"
                    @click.stop="scenDel(index)"
                    style="margin-left: 10px"
                  ></i>
                </div>
              </div>
            </div>
            <el-table
              :data="tableCertData"
              style="width: 100%"
              ref="multipleTable"
              height="490"
            >
              <template slot="empty" class="emptyBg">
                <img src="@/assets/images/empty.jpg" alt="" />
              </template>
              <el-table-column
                label="证书名称"
                align="center"
                prop="certTypeId"
              >
                <template slot-scope="scope">
                  {{ scope.row.certType.certName }}
                </template>
              </el-table-column>
              <el-table-column
                label="持有人"
                align="center"
                prop="belongerName"
              />
              <el-table-column label="身份证号" align="center" prop="idCard" />
              <el-table-column label="手机号" align="center" prop="phone" />
              <el-table-column label="证书主图" align="center" prop="remark">
                <template slot-scope="scope">
                  <el-image
                    style="height: 100%"
                    :src="scope.row.remark"
                    :preview-src-list="[scope.row.remark]"
                  ></el-image>
                </template>
              </el-table-column>
              <el-table-column
                label="有效期"
                align="center"
                prop="certValidity"
                width="180"
              >
                <template slot-scope="scope">
                  <span>{{
                    scope.row.foreverValidity == "Y"
                      ? "永久有效"
                      : parseTime(scope.row.certValidity, "{y}-{m}-{d}")
                  }}</span>
                </template>
              </el-table-column>
              <el-table-column label="状态" align="center" prop="certNumber">
                <template slot-scope="scope">
                  {{
                    scope.row.foreverValidity == "Y"
                      ? "正常"
                      : compareDate(scope.row.certValidity)
                      ? "正常"
                      : "已过期"
                  }}
                </template>
              </el-table-column>
            </el-table>
            <el-pagination
              prev-text="上一页"
              next-text="下一页"
              background
              :page-sizes="[10, 20, 30, 40, 50, 100]"
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="pageNum"
              :page-size="pageSize"
              layout=" ->,total, sizes, prev, pager, next, jumper "
              :total="total"
            >
            </el-pagination>
          </el-tab-pane>
          <el-tab-pane label="资质" name="third">
            <div class="left">
              <span>场景：</span>
              <el-select
                v-model="value"
                ref="topSel"
                clearable
                @visible-change="
                  (v) => visibleChange(v, 'topSel', selClick, admClick)
                "
                class="sel-sence"
                @change="querySceneList"
              >
                <el-option
                  v-for="item in sceneOptions"
                  :key="item.sceneId"
                  :label="item.name"
                  :value="item.sceneId"
                >
                </el-option>
              </el-select>
              <el-button
                type="primary"
                icon="iconfont icon-shaixuan"
                size="default"
                @click="screen"
              >
                高级筛选
              </el-button>
            </div>
            <div v-if="scenArr !== []" class="scenF">
              <div
                v-for="(item, index) in scenArr"
                :key="index"
                class="scenF-content"
              >
                <div class="scenF-detail" @click="scenSearch(item.sceneId)">
                  {{ item.sceneList }}
                  <i
                    class="el-icon-circle-close"
                    @click.stop="scenDel(index)"
                    style="margin-left: 10px"
                  ></i>
                </div>
              </div>
            </div>
            <el-table :data="tableQualData" style="width: 100%" height="490">
              <template slot="empty" class="emptyBg">
                <img src="@/assets/images/empty.jpg" alt="" />
              </template>
              <el-table-column
                label="资质名称"
                align="center"
                prop="qualificationTypeId"
              >
                <template slot-scope="scope">
                  {{ scope.row.qualificationType.name }}
                </template>
              </el-table-column>
              <el-table-column
                label="公司名称"
                align="center"
                prop="companyName"
              />
              <el-table-column
                label="资质编号"
                align="center"
                prop="certNumber"
              />
              <el-table-column
                label="有效期"
                align="center"
                prop="validityDate"
                width="180"
              >
                <template slot-scope="scope">
                  <span>{{
                    scope.row.foreverValidity == "Y"
                      ? "永久有效"
                      : parseTime(scope.row.validityDate, "{y}-{m}-{d}")
                  }}</span>
                </template>
              </el-table-column>
              <el-table-column
                label="发证时间"
                align="center"
                prop="issueDate"
                width="180"
              >
                <template slot-scope="scope">
                  <span>{{
                    parseTime(scope.row.issueDate, "{y}-{m}-{d}")
                  }}</span>
                </template>
              </el-table-column>

              <el-table-column label="状态" align="center" prop="certNumber">
                <template slot-scope="scope">
                  {{
                    scope.row.foreverValidity == "Y"
                      ? "未过期"
                      : compareDate(scope.row.validityDate)
                      ? "未过期"
                      : "已过期"
                  }}
                </template>
              </el-table-column>
              <!-- <el-table-column label="备注" align="center" prop="remark" />
              <el-table-column
                label="负责人"
                align="center"
                prop="directorName"
              /> -->
            </el-table>
            <el-pagination
              prev-text="上一页"
              next-text="下一页"
              background
              :page-sizes="[10, 20, 30, 40, 50, 100]"
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="pageNum"
              :page-size="pageSize"
              layout=" ->,total, sizes, prev, pager, next, jumper "
              :total="total"
            >
            </el-pagination>
          </el-tab-pane>
          <el-tab-pane label="操作记录" name="fourth" class="thirdTab">
            <div
              class="operation"
              v-for="(item, index) in Operation"
              :key="index"
            >
              <div class="user">
                <div class="portrait">
                  <img :src="item.avatar" alt="" />
                </div>
                <el-tooltip
                  class="item"
                  effect="dark"
                  :content="item.createBy"
                  placement="top"
                >
                  <div class="name">{{ item.createBy }}</div>
                </el-tooltip>
              </div>
              <div class="record">
                <div class="time">{{ item.createTime }}</div>
                <div class="content">
                  <div>{{ item.content }}</div>
                </div>
              </div>
            </div>
          </el-tab-pane>
        </el-tabs>
      </div>
    </el-drawer>
    <drag-table
      :dialog="dialog"
      :type="type"
      v-if="dialog.senceAdminEject"
      ref="dragTable"
    ></drag-table>
    <manage-screen
      :dialog="dialog"
      :switchShow="switchShow"
      v-if="dialog.screenEcejt"
      :type="type"
      @sceneArr="sceneArr"
    ></manage-screen>
    <!-- 更换负责人 -->
    <el-dialog
      title="更换负责人"
      :visible.sync="dialog.dialogPerCha"
      width="50%"
      @close="perClose"
      custom-class="dialogClass"
      :close-on-click-modal="false"
    >
      <charge-person
        v-if="dialog.dialogPerChaEject"
        ref="chaPer"
      ></charge-person>
      <span slot="footer">
        <el-button @click="dialog.dialogPerCha = false"> 取消 </el-button>
        <el-button type="primary" @click="onChangeChar"> 确定 </el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import {
  certList,
  qualList,
  trusteeshipActiveList,
  insertTrusteeshipActive,
  deleteTrusteeshipActive,
  updateTrusteeshipActive,
  changeDirector,
} from "@/api/trusteeship/index";
import { distriBution } from "@/api/registration";
import { OperationRecord } from "@/api/currency";
import dragTable from "./dragTable.vue";
import manageScreen from "./manageScreen.vue";
// 负责人
import chargePerson from "@/components/chargePerson";
export default {
  components: {
    dragTable,
    manageScreen,
    chargePerson,
  },
  props: {
    dialog: {
      type: Object,
      required: true,
    },
    drawerData: {
      type: Object,
      required: true,
    },
  },
  data() {
    return {
      tabType: 1,
      chargerOptions: [],
      type: 53,
      value: "",
      sceneOptions: "",
      charge: "",
      chargeId: "",
      txtInput: "",
      HdShow: true,
      scenArr: [],
      ActiveList: [],
      tableCertData: [],
      tableQualData: [],
      switchShow: [],
      pageSize: 10,
      pageNum: 1,
      total: 0,
      Operation: [],
      activeName: "first",
      direction: "rtl",
    };
  },
  created() {
    this.trusteeshipActiveList();
    this.getRecord();
  },
  methods: {
    // 关闭更换负责人
    perClose() {
      this.charge = "";
      this.dialog.dialogPerChaEject = false;
    },
    // 确定更换
    onChangeChar() {
      if (this.charge == "") return this.$message.error("请选择负责人");
      changeDirector({
        id: this.drawerData.id,
        userId: this.charge,
      }).then((res) => {
        this.$message.success(res.msg);
        this.dialog.dialogPerCha = false;
        this.$parent.getList();
      });
    },
    //获取负责人
    getChargeList() {
      distriBution().then((res) => {
        this.chargerOptions = res.data;
      });
    },
    // 编辑
    importClue(item) {
      this.HdShow = false;
      this.txtInput = item.content;
      this.charge = item.id;
      this.chargeId = item.userId;
    },
    // 删除
    async acDel(item) {
      const confirmResult = await this.$confirm(
        "此操作将永久删除该活动, 是否继续?",
        "提示",
        {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning",
        }
      ).catch((err) => err);
      /*如果用户确认打印confirm,如果用户取消显示cancel*/
      if (confirmResult !== "confirm") {
        return this.$message.info("已取消删除!");
      } else {
        deleteTrusteeshipActive({
          id: item.id,
          userId: item.userId,
        }).then((res) => {
          this.$message.success(res.msg);
          this.trusteeshipActiveList();
        });
      }
    },
    // 新增活动
    submit() {
      if (this.charge == "") {
        insertTrusteeshipActive({
          content: this.txtInput,
          trusteeshipId: this.drawerData.id,
        }).then((res) => {
          this.$message.success(res.msg);
          this.HdShow = true;
          this.txtInput = "";
          this.trusteeshipActiveList();
        });
      } else {
        updateTrusteeshipActive({
          id: this.charge,
          userId: this.chargeId,
          content: this.txtInput,
        }).then((res) => {
          this.$message.success(res.msg);
          this.HdShow = true;
          this.txtInput = "";
          this.charge = "";
          this.chargeId = "";
          this.trusteeshipActiveList();
        });
      }
    },
    // 获取活动列表
    trusteeshipActiveList() {
      console.log(this.drawerData.id);
      trusteeshipActiveList({
        trusteeshipId: this.drawerData.id,
      }).then((res) => {
        this.ActiveList = res.data;
        console.log(res);
      });
    },
    // tab 切换
    tabChange(e) {
      if (e.index == 1) {
        this.pageNum = 1;
        this.type = 53;
        this.tabType = e.index;
        this.scenArr = [];
        this.getCertList();
        this.switchShow = [
          {
            label: "证书名称",
            stage: "certTypeId",
          },
          {
            label: "持有人",
            stage: "belongerName",
          },
          {
            label: "身份证号",
            stage: "idCard",
          },
          {
            label: "手机号",
            stage: "phone",
          },
          {
            label: "有效期",
            stage: "certValidity",
          },
        ];
      } else if (e.index == 2) {
        this.scenArr = [];
        this.type = 54;
        this.tabType = e.index;
        this.pageNum = 1;
        this.switchShow = [
          {
            label: "资质名称",
            stage: "name",
          },
          {
            label: "公司名称",
            stage: "companyName",
          },
          {
            label: "资质编号",
            stage: "certNumber",
          },
          {
            label: "发证时间",
            stage: "issueDate",
          },
          // {
          //   label: "备注",
          //   stage: "remark",
          // },
          // {
          //   label: "负责人",
          //   stage: "userId",
          // },
        ];
        this.getQualList();
      } else {
        this.tabType = "";
        this.scenArr = [];
        this.pageNum = 1;
      }
    },
    // 获取资质列表
    getQualList(val) {
      qualList({
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        sceneId: val,
        companyId: this.drawerData.companyId,
      }).then((res) => {
        this.tableQualData = res.rows;
        this.total = res.total;
      });
    },
    // 获取证书列表
    getCertList(val) {
      certList({
        pageNum: this.pageNum,
        pageSize: this.pageSize,
        sceneId: val,
        companyId: this.drawerData.companyId,
      }).then((res) => {
        this.tableCertData = res.rows;
        this.total = res.total;
      });
    },
    handleSizeChange(val) {
      this.pageSize = val;
      this.pageNum = 1;
      if (tabType == 1) {
        this.getCertList();
      } else if (this.tabType == 2) {
        this.getQualList();
      }
    },
    // 分页
    handleCurrentChange(val) {
      this.pageNum = val;
      if (tabType == 1) {
        this.getCertList();
      } else if (this.tabType == 2) {
        this.getQualList();
      }
    },
    // 请求场景
    getScene() {
      queryScene({
        type: this.type,
      }).then((res) => {
        if (res.default !== null) {
          res.scenes.unshift(res.default);
          this.sceneOptions = res.scenes;
        } else {
          this.sceneOptions = res.scenes;
        }
      });
    },
    // 打开高级筛选
    screen() {
      this.dialog.screenEcejt = true;
      this.$nextTick(function () {
        this.dialog.dialogScreenVisible = true;
      });
    },
    // 点击临时搜索
    scenSearch(id) {
      if (this.type == 53) {
        this.getCertList(id);
      } else if (this.type == 54) {
        this.getQualList(id);
      }
    },
    // 删除临时搜索
    scenDel(i) {
      this.scenArr.splice(i, 1);
      if (this.scenArr.length == 0) {
        if (this.type == 53) {
          this.getCertList();
        } else if (this.type == 54) {
          this.getQualList();
        }
      }
    },
    // 获取数组
    sceneArr(data) {
      this.scenArr.push(data);
    },
    querySceneList() {
      if (this.type == 53) {
        this.getCertList();
      } else if (this.type == 54) {
        this.getQualList();
      }
    },
    //管理
    admClick() {
      this.dialog.senceAdminEject = true;
      this.$nextTick(function () {
        this.dialog.senceAdmin = true;
      });
    },
    //新建场景
    selClick() {
      this.screen();
    },
    // 场景下拉框按钮
    visibleChange(visible, refName, onClick, onClick2) {
      if (visible) {
        const ref = this.$refs[refName];
        let popper = ref.$refs.popper;
        if (popper.$el) popper = popper.$el;
        if (
          !Array.from(popper.children).some(
            (v) => v.className === "el-cascader-menu__list"
          )
        ) {
          const el = document.createElement("ul");
          el.className = "el-cascader-menu__list";
          el.style =
            "border-top: solid 1px #E4E7ED; padding:0; color: #606266;";
          el.innerHTML = `<li class="el-cascader-node" >
                            <span class="el-cascader-node__label" style='color:#1267FA'>新建场景</span>
                            </li>
                        `;
          const el2 = document.createElement("ul");
          el2.className = "el-cascader-menu__list";
          el2.innerHTML = `<li class="el-cascader-node" >
                            <span class="el-cascader-node__label" style='color:#1267FA'>管理</span>
                            </li>
                        `;
          popper.appendChild(el);
          popper.appendChild(el2);
          el2.onclick = () => {
            onClick2 && onClick2();
            if (ref.toggleDropDownVisible) {
              ref.toggleDropDownVisible(false);
            } else {
              ref.visible = false;
            }
          };
          el.onclick = () => {
            // 底部按钮的点击事件 点击后想触发的逻辑也可以直接写在这
            onClick && onClick();
            // 以下代码实现点击后弹层隐藏 不需要可以删掉
            if (ref.toggleDropDownVisible) {
              ref.toggleDropDownVisible(false);
            } else {
              ref.visible = false;
            }
          };
        }
      }
    },
    // 操作记录
    getRecord() {
      OperationRecord({
        columnId: 51,
        entryId: this.drawerData.id,
      }).then((res) => {
        this.Operation = res.data;
      });
    },
    // 关闭抽屉
    drawerClose() {
      this.dialog.dialogShowDrawerEject = false;
    },
    // 更换负责人
    changeCharge() {
      this.dialog.dialogPerChaEject = true;
      this.$nextTick(function () {
        this.dialog.dialogPerCha = true;
      });
    },
  },
};
</script>

<style lang="less" scoped>
/deep/.el-drawer.rtl {
  height: 96%;
  margin-top: 1.6%;
}
.head {
  padding: 29px;
  width: 100%;
  height: 155px;
  border-bottom: 1px solid #ececec;
  span {
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #999999;
  }
  .header {
    display: flex;
    justify-content: space-between;
    .img {
      transform: translateY(-15px);
      img {
        vertical-align: middle;
        margin-right: 12px;
      }
      h3 {
        display: inline-block;
      }
    }
  }
  .footer {
    display: flex;
    .information {
      display: flex;
      flex-direction: column;
      margin-right: 80px;
      h4 {
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #2b2b2b;
        margin-top: 12px;
      }
    }
  }
}
.strip {
  width: 100%;
  height: 16px;
  background: #fafafa;
  border: 1px solid #ececec;
  /deep/.el-tabs__nav-scroll {
    background-color: #f5f8fa;
  }
}
/deep/ .el-tab-pane {
  padding-left: 24px;
  overflow: auto;
}

.basics {
  position: relative;
  font-size: 14px;
}

.basics::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1px;
  width: 3px;
  height: 14px;
  background: #1267fa;
}

.system {
  margin-top: 40px;
  position: relative;
  font-size: 14px;
}

.system::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1px;
  width: 3px;
  height: 14px;
  background: #1267fa;
}

.basics-information {
  display: flex;
  flex-wrap: wrap;
  .el-form {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    .el-form-item {
      width: 50%;
      /deep/ .el-form-item__label {
        color: #999999;
      }
    }
  }
  .subclass {
    width: 249px;
    margin-top: 30px;
    margin-right: 150px;

    span {
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #999999;
      line-height: 14px;
    }
  }
}

.operation {
  display: flex;

  .user {
    display: flex;

    .portrait {
      width: 30px;
      height: 30px;
      border-radius: 30px;

      img {
        width: 100%;
        height: 100%;
        border-radius: 30px;
      }
    }

    .name {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      width: 100px;
      height: 30px;
      line-height: 30px;
      margin-left: 14px;
    }
  }

  .record {
    padding-left: 21px;
    margin-left: 44px;
    border-left: 1px dotted #dbdcdb;

    .time {
      font-size: 14px;
      position: relative;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #999999;
      line-height: 14px;
    }

    .time::before {
      content: "";
      position: absolute;
      left: -27px;
      width: 11px;
      height: 11px;
      background-color: #000;
      transform: rotate(45deg);
    }

    .content {
      padding-top: 10px;
      padding-bottom: 10px;
    }
  }
}

.el-dropdown {
  margin-left: 10px;
}

/deep/ .el-table__header-wrapper {
  background: #f2f2f2;
}

/deep/ .el-tabs__content {
  height: 77vh;
  overflow: auto;
  padding-bottom: 50px;
}

.imgUp {
  width: 100px;
  height: 100px;
  vertical-align: top;
}
.el-pagination {
  margin-top: 24px;
  /deep/ .el-pagination__total {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 25px;
  }
  /deep/ .btn-prev {
    width: 80px;
    height: 40px;
    text-align: center;
  }
  /deep/ .btn-next {
    width: 80px;
    height: 40px;
    text-align: center;
  }
  /deep/ .number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  /deep/ .el-input__inner {
    // width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  /deep/ .more {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
  /deep/ .el-pagination__jump {
    .el-input__inner {
      width: 40px;
      height: 40px;
    }
  }
}
.HkBottom {
  margin-top: 20px;
  padding-bottom: 80px;
}
.activetyIpt {
  border: 1px solid #ececec;
  width: 100%;
  // height: 50px;
  padding-left: 20px;
  line-height: 50px;
}
.activeArea {
  position: relative;
  .Gb {
    position: absolute;
    z-index: 1000;
    top: 5px;
    right: 5px;
    cursor: pointer;
  }
  width: 100%;
  .activeArea-bottom {
    display: flex;
    justify-content: space-between;
  }
  .el-button {
    margin-top: 20px;
  }
}
.detail {
  margin-top: 20px;
  border-bottom: 1px solid #ececec;
  .substance {
    margin-top: 10px;
    font-size: 18px;
  }
  .time {
    width: 200px;
    text-align: center;
    height: 30px;
    line-height: 30px;
    border-radius: 4px;
    border: 1px solid #ececec;
  }
}
.detail {
  padding-bottom: 10px;
}
.content {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .content-left {
    display: flex;
    align-items: center;
    .avatr {
      width: 40px;
      height: 40px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .userName {
      margin-left: 20px;
    }
  }
}
.left {
  display: flex;
  align-items: center;
  .el-button {
    margin-left: 10px;
  }
}
.scenF {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  .scenF-content {
    display: flex;
    margin-left: 10px;
    margin-top: 10px;
    .scenF-detail {
      height: 36px;
      line-height: 36px;
      padding-left: 20px;
      padding-right: 20px;
      border: 1px solid #9aa1af;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #666666;
      .el-icon-circle-close {
        transform: translateY(3px);
      }
    }
  }
}
</style>